package cn.itcast.jx.service;

import java.io.Serializable;
import java.util.List;

import cn.itcast.jx.domain.ContractProduct;
import cn.itcast.jx.util.Page;

public interface ContractProductService {
	//分页查询，将数据封装到一个page分页工具类对象
	public  Page<ContractProduct> findPage(String hql, Page<ContractProduct> page, Class<ContractProduct> entityClass, Object[] params);
	
	//获取一条记录
	public  ContractProduct get(Class<ContractProduct> entityClass, Serializable id);
	
	//新增和修改保存
	public  void saveOrUpdate(ContractProduct entity);
	//批量删除
	public  void delete(Class<ContractProduct> entityClass, String ids);
	
	//查询所有，带条件查询
	public  List<ContractProduct> find(String hql, Class<ContractProduct> entityClass, Object[] params);
		
		
}
